You don't have to work overtime today. Come back to watch movies and listen to songs. A long-planned blog has finally ushered in the first meaningful article today. I have read some articles on the Internet, but I am not writing well. I will try
IntroductionCoding specification is an essential quality of a good programmer, however, many people pay great attention to the name of variables, methods and classes in the program, but ignore the same important database object naming. This article
1. General rules: Do not abbreviations at will;
2. Use uppercase letters and underscores (_) for macros and enumerations;
3. the variables (including class and struct member variables), files, namespaces, and access functions are all lowercase
1. general rules: Do not abbreviations; 2. use uppercase letters and underscores (_) for macros and enumerations. 3. the variables (including class and struct member variables), files, namespaces, and access functions are all lowercase letters and
Reprinted please indicate the source: http://blog.csdn.net/horkychen
(Excerpt from msdn-coding techniques and programming practices)
Names)
Naming is most helpful for understanding the logical structure of a program. A name description is "what" is
1. Writing Purpose
Unified naming and coding specifications are used to standardize database naming and encoding styles for reading, understanding, and inheritance.
2. Applicability
This specification applies to the development of all application
1.1. Formal parameter naming recommendationsThe name of all formal parameters should be used to express its purpose. If appropriate, the name of the formal parameter should preferably be prefixed with the letter A, for example:Procedure Someproc
Naming rules in the code: wrong and correct comparisons
Programming beginners always spend a lot of time learning programming languages, grammar, techniques and programming tools for use. They thought that if they mastered the technical skills,
# #-*-Coding:utf-8-*-# # python:2.x# __author__ = ' Administrator '# my_list=[' A ', ' B ', ' C ', ' d '# """# Most standard programs are built without ignoring usability, see the following example to understand the meaning of the sentence# """# if '
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.